package com.sinvo.oa.result;

import lombok.Getter;

/**
 * @Description 响应码枚举类
 */
@Getter
public enum ResultCode {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(203, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    LOGIN_ERROR(205, "账户或密码错误"),
    PERMISSION(206, "没有操作权限"),
    VERCODE_ERROR(207,"验证码错误");

    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
